x11: Don't call _gdk_surface_update_size() all the time
authorBenjamin Otte <otte@redhat.com>
Mon, 15 Mar 2021 02:16:50 +0000 (03:16 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 15 Mar 2021 02:16:50 +0000 (03:16 +0100)
commitdbd19bf27ada039f83acb6924173e0491ceae43e
treeef8915771edf8bacf359f59b9e37f65b4abbffb4
parent97fad4523715ab2493a1a48be896ee6d0efd74e6
x11: Don't call _gdk_surface_update_size() all the time

We were calling _gdk_surface_update_size() every frame, even if the
window size didn't change. This would cause us to discard all cached
buffers and redraw the whole screen.

This was BAD.
gdk/x11/gdksurface-x11.c
gdk/x11/gdksurface-x11.h